#include<stdio.h>
#include<stdbool.h>
#include "linkstack.h"
int main(){

	linkstack s = stack_create();
	stack_push(s, 10);
	stack_push(s, 20);
	stack_push(s, 30);
	stack_push(s, 40);
	stack_show(s);
	//从栈中拿出一个元素
	printf("pop Number :%d \n", stack_pop(s));
	//获取栈顶元素
	printf("Get Top Number: %d\n", stack_top(s));
	//释放栈空间
	stack_free(s);
	return 0;
}
